﻿<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
		<meta name="apple-mobile-web-app-title" content="思路广惠">
		<title>卡号管理</title>

		<meta content="telephone=no" name="format-detection" />

		<link rel="stylesheet" type="text/css" href="../../src/css/base.css?1.0" />
	</head>

	<body class="body-bg">
		<header class="header">
			<a href="javascript: history.back(-1)" class="head-le"><i class="iconfont icon-fanhui i2m"></i></a>
			<div class="header-txt">卡号管理</div>
			<a class="head-ri" href="bankadd.html">新增</a>
		</header>
		<section class="top1rem">
			<ul class="pad-lr"  id="cardbanks">

			</ul>
		</section>
		<script type="text/html" id="cardbank">

			{{# for(var i = 0; i
			< d.PageData.length; i ++){ }} <li class="btm1rem">
				{{# if(d.PageData[i].MembersBank_Mark == 1){ }} <img class="bank-img" src="../../src/images/icon-default.png" /> {{# } }}
				<a class="bankcard-a" href="bankdetail.html?bankID={{d.PageData[i].MembersBank_ID}}">
					<div class="bankcard-name">
						<img src={{d.img}}{{d.PageData[i].Image_Url}} /> {{d.PageData[i].Bank_Name}}
					</div>
					<p class="top1rem btm1rem">{{d.PageData[i].MembersBank_Account}}</p>
					<p>开户行：{{d.PageData[i].MembersBank_Address}}</p>

				</a>
				<div class="card-bg"></div>
				</li>
				{{# } }}

		</script>
		
		<script src="http://apps.bdimg.com/libs/laytpl.js/1.1/laytpl.js"></script>
		<script src="//cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
		<script src="../../src/js/all.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			silks.temp(["#cardbank", "#cardbanks"], "/WorkMembersBank/GetMembersBankByID", {
					MembersID: MembersID,
					PageIndex: 1
				}, function() {
					console.log(this.PageData)
					if(this.PageData.length == 0) {
						$("#cardbanks").html("<div style='margin-top: 50%; text-align: center;'><p>银行账户为空，请添加银行账户</p><a href='bankadd.html' style='font-size: 18px;'>点击添加</a></div>")
					}
				});
		</script>
	</body>

</html>